<tagLib name="cx,html" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>{$options.blogname} 附件上传</title>
	<style>
	input { padding:2px; border:1px solid; border-color:#666 #ccc #ccc #666; background:#F9F9F9; color:#333; }
	.txt { vertical-align:middle; }
	.txt:hover, .txt:focus, textarea:hover, textarea:focus{ border-color:#09C; background:#F5F9FD; }
	.btn{ margin:3px; padding:2px 5px; *padding:4px 5px 1px; border-color:#ddd #666 #666 #ddd; background:#DDD; color:#000; cursor:pointer; vertical-align:middle; }
	</style>
	<script type="text/javascript" src="__PUBLIC__/Js/jquery.js"></script>
	<script language="javascript">
		function addFileInput()
		{
			$("#uploader").append('<div class="fileinput">文件: <input type="file" name="userFile[]" onchange="addFileInput()" /> 描述: <input type="text" class="txt" name="fileDesc[]" /></div>');
		}
	</script>
</head>
<body>
<form action="{:url('upload')}" method="post" enctype="multipart/form-data">
<div id="uploader">
<div class="fileinput">文件: <input type="file" class="txt" name="userFile[]" onchange="addFileInput()" /> 描述: <input type="text" class="txt" name="fileDesc[]" /></div>
</div>
<div><input type="hidden" name="upload" value="1" /><input type="submit" name="submit" class="btn" value="上传" onclick="$('#info').html('正在上传...');" /><input type="button" class="btn" name="cancel" value="取消" onclick="parent.hideUploadWindow()" />&nbsp;<span id="info"></span></div>
</form>
</body>
</html>